/*
 * Copyright © 2004-2014 chenYuan. All rights reserved.
 * @Website:wwww.jspx.net
 * @Mail:39793751@qq.com
 * @author: chenYuan , 陈原
 * @License: Jspx.net Framework Code is open source (LGPL)，Jspx.net Framework 使用LGPL 开源授权协议发布。
 * @jvm:jdk1.6+  x86/amd64
 *
 */
package com.jspx.txweb.dao;


import com.jspx.sober.SoberSupport;
import java.util.List;


/**
 * Created by IntelliJ IDEA.
 * User:chenYuan (mail:39793751@qq.com)
 * Date: 2005-11-14
 * Time: 18:20:02
 */
public interface UploadFileDAO extends SoberSupport {
    Object getForHash(String hash) throws Exception;
    boolean haveHash(String hash) throws Exception;
    Object getChildFileList(long pid);
    String getNamespace();
    Class getClassType() throws Exception;
    Object get(Long id) throws Exception;
    Object load(Long id) throws Exception;
    boolean delete(Long[] ids) throws Exception;
    boolean updateSortType(Long[] ids, int sortType) throws Exception;
    boolean updateSortDate(Long[] ids) throws Exception;
    List getList(String[] field,String[] find,String term,String sortString,long uid,long pid,int page, int count) throws Exception;
    int getCount(String[] field,String[] find,String term,long uid,long pid) throws Exception;
    Object getThumbnail(long pid);
}